home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / gold / voxel.h < prev   
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.4 KB  |  45 lines

  1. /*
  2.  * The original copyright owners of the accompanying source code files have
  3.  * agreed to place such code into the public domain.  Accordingly, anyone
  4.  * who receives or obtains a copy of such source code is freely entitled to
  5.  * reproduce, use and otherwise exploit such code (including the right to
  6.  * make derivative works), at his/her own risk and expense, without any
  7.  * obligation or liability to the original copyright owners.
  8.  *
  9.  * We would appreciate (but do not require) that the following message be
  10.  * included in any derivative works:
  11.  *
  12.  * "Portions of this program were developed by Peter Broadwell, Rob Myers
  13.  * and Robin Schaufler while working in Silicon Valley."
  14.  *
  15.  * The accompanying source code files and related documentation materials
  16.  * are distributed on an "AS IS" basis, without any warranties or
  17.  * guarantees of any kind.  All implied warranties, including the implied
  18.  * warranties of merchantability and of fitness for any particular purpose,
  19.  * are expressly disclaimed.
  20.  */
  21.     /*
  22.      *  A voxel is a unit of 3D space.
  23.      *  It's superclass is mailbox.
  24.      */
  25. #define NDIMENSIONS    3
  26. #define VOX_X        0
  27. #define VOX_Y        1
  28. #define VOX_Z        2
  29.  
  30. #define NDIRECTIONS    2
  31. #define NEXT        0
  32. #define PREV        1
  33. #define STATION        -1
  34.  
  35. #define CONTINUE    0
  36. #define HALT        -1
  37.  
  38. typedef inst *link;
  39.  
  40. typedef struct {
  41.     mailbox mbox;
  42.     link dim [NDIMENSIONS] [NDIRECTIONS];
  43.     cube volume;
  44. } voxel;
  45.